<template> 
    <div>
      <h2 ref="myref">wwww</h2>
          <button @click="myclick">获取引用</button>
          <son ref="sonref"></son>
    </div> 
  </template>
  <script> 
    import  Son from './Son'
    export default {
      name: 'addAdmin', 
      components: {
          Son
      },

      data(){
          return{
            param: ''
          }
      },
      methods: {
        myclick(){  
          console.log(this.$refs)
          this.$refs.sonref.add()


        }
      },

     
    }
  </script>
  <style>
  </style>
  
  
  